package cn.iocoder.yudao.module.locale.controller.app.tabledata.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Schema(description = "用户 APP - 表数据国际化条件查询 Response VO")
@Data
public class AppTableDataConditionRespVO {
    @Schema(description = "表数据")
    private List<Table> tableList;

    @Schema(description = "表数据")
    @Data
    public static class Table {
        @Schema(description = "表名", requiredMode = Schema.RequiredMode.REQUIRED)
        private String tableName;

        @Schema(description = "行数据")
        private List<Row> rowList;
    }

    @Schema(description = "行数据")
    @Data
    public static class Row {
        @Schema(description = "行Id", requiredMode = Schema.RequiredMode.REQUIRED)
        private String rowId;

        @Schema(description = "列数据")
        private List<Column> columnList;
    }

    @Schema(description = "列数据")
    @Data
    public static class Column {
        @Schema(description = "列名", requiredMode = Schema.RequiredMode.REQUIRED)
        private String name;

        @Schema(description = "列原始的值", requiredMode = Schema.RequiredMode.REQUIRED)
        private String rawValue;

        @Schema(description = "列翻译的值", requiredMode = Schema.RequiredMode.REQUIRED)
        private String translatedValue;
    }

}